package pointFunction

import "ys.calc/role"

func PercentATK(percentAtk float64, r *role.Role) {
	r.AtkEx += r.Atk * (percentAtk / 100)
}
func FlatHP(hpValue float64, roleTemp *role.Role) {
	roleTemp.HpEx += hpValue
}
func FlatAtk(atk float64, roleTemp *role.Role) {
	roleTemp.AtkEx += atk
}
func PercentHP(percent float64, r *role.Role) {
	r.HpEx += r.Hp * (percent / 100)
}
func AddRecharge(value float64, r *role.Role) {
	r.Recharge += value
}
func PercentDefense(percent float64, r *role.Role) {
	r.DefenseEx += r.Defense * (percent / 100)
}
func AddIncrease(value float64, r *role.Role) {
	r.Increase += value
}
func AddElementalMastery(value float64, r *role.Role) {
	r.Mastery += value
}
func AddCritRate(value float64, r *role.Role) {
	r.CritRate += value
}
func AddCritDmg(value float64, r *role.Role) {
	r.CritDmg += value
}
